<template>
  <div id="app">
    <input type="button" value="点击我啊" v-on:click="handlerInputClick">
    <TestShowMessage  v-bind:showMessageArray="showMessageArray"></TestShowMessage>
  </div>
</template>

<script>
import TestShowMessage from "./components/TestShowMessage.vue";
import { Toast } from "mint-ui";
import { Indicator } from "mint-ui";

export default {
  name: "app",
  data: function() {
    return {
      currentId: 1003,
      showMessageArray: [
        {
          id: 1000,
          name: "javascript"
        },
        {
          id: 1001,
          name: "html"
        },
        {
          id: 1002,
          name: "css"
        }
      ]
    };
  },
  computed: {},
  components: {
    TestShowMessage
  },
  methods: {
    handlerInputClick: function() {
      console.log("点击了");
      Indicator.open({
        text: "加载中...",
        spinnerType: "fading-circle"
      });
    }
  }
};
</script>

<style>
@import url(./app.scss);
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
